﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Modularity;
using Volo.Abp.Dapper;

namespace MatTrace.EntityFrameworkCore
{
    [DependsOn(
        typeof(MatTraceDomainModule),
        typeof(AbpEntityFrameworkCoreModule),
        typeof(AbpDapperModule)
    )]
    public class MatTraceEntityFrameworkCoreModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAbpDbContext<MatTraceDbContext>(options =>
            {
                //Add custom repositories here. Example:
                //options.AddRepository<Question, EfCoreQuestionRepository>();
                options.AddDefaultRepositories(includeAllEntities: true);

                //options.AddRepository<,ITmrbr001Repository>

            });
        }
    }
}